package com.rongshu.utils;

import android.content.Context;
import android.content.Intent;

import com.rongshu.view.base.BaseActivity;
import com.rongshu.view.login.activity.VerificationCodeLoginActivity;

/**
 * created by zhengweis on 2018/12/12.
 * description：
 */
public class LoginUtils {

    /**
     * 登录1
     *
     * @param context
     */
    public static void toLogin(final Context context) {
        Intent intent = new Intent(context, VerificationCodeLoginActivity.class);
        context.startActivity(intent);
    }

    /**
     * 登录2
     *
     * @param context
     */
    public static void toLogin(final BaseActivity context, final int requestCode) {
        Intent intent = new Intent(context, VerificationCodeLoginActivity.class);
        context.startActivityForResult(intent, requestCode);
    }
}
